# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-librelingo-yaml-loader
pkgver=1.8.0
pkgrel=1
pkgdesc="Load YAML-based LibreLingo courses in your Python project"
url="https://github.com/kantord/LibreLingo"
arch="noarch"
license="AGPL-3.0-only"
depends="
	py3-bleach
	py3-bleach-allowlist
	py3-click
	py3-html2markdown
	py3-librelingo-types
	py3-markdown
	py3-pyfakefs
	py3-slugify
	py3-yaml
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-pytest
	py3-snapshottest
	"
source="https://pypi.python.org/packages/source/l/librelingo_yaml_loader/librelingo_yaml_loader-$pkgver.tar.gz"
options="!check" # No tests in the PyPi package
builddir="$srcdir/librelingo_yaml_loader-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e3331b0d50b360c7aa447c7bdc9937e578bfde9f398b916e951d6a1aa5d17c78a1591b9274021b31cc6a76df4415006d42cec0a13b7e3136f855fb24b858a605  librelingo_yaml_loader-1.8.0.tar.gz
"
